﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Bussiness.Service;


namespace KiwiShopping.Controllers
{
    [HandleError]
    public class BaseController : Controller
    {
        string pathImage;
        public BaseController(){
            ViewData["ListArtical_Home"] = new Artical_Service().getArticleByIsBanner();
          
        }

        protected override void Initialize(System.Web.Routing.RequestContext requestContext)
        {
            base.Initialize(requestContext);
            // now Server has been initialized
            pathImage = Server.MapPath(Constant.pathImageSmall);
            ViewData["Sale_Products"] = new Product_Service().search_Product_sale(pathImage);

        }
    }
}
